<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="ClubSettings.aspx.cs" Inherits="ClubWebsite.ClubSettings" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            Settings for <asp:Literal ID="litClubName" runat="server"></asp:Literal>
            <br />
            <br />
            Club name
            <br />
            <asp:TextBox ID="txtClubName" Width="20em" runat="server"></asp:TextBox>
            <asp:CustomValidator ID="valClubName" runat="server" ControlToValidate="txtClubName" 
                CssClass="error" Display="Dynamic" ErrorMessage="An entry is required" OnServerValidate="valClubName_ServerValidate"
                ValidateEmptyText="True"></asp:CustomValidator>
            <br />
            <br />
            Description about this website for people to see this when they see the website in their search results
            <br />
            <asp:TextBox ID="txtDescriptionForSearchEngines" runat="server" Width="20em"></asp:TextBox>
            <asp:CustomValidator ID="valDescriptionForSearchEngines" runat="server" ControlToValidate="txtDescriptionForSearchEngines"
                CssClass="error" Display="Dynamic" ErrorMessage="An entry is required" OnServerValidate="valDescriptionForSearchEngines_ServerValidate"
                ValidateEmptyText="True"></asp:CustomValidator>
            <br />
            <br />
            Keywords for search engines to use (relevant words will help with search rankings)
            <br />
            <asp:TextBox ID="txtKeywordsForSearchEngines" runat="server" Width="20em"></asp:TextBox>
            <asp:CustomValidator ID="valKeywordsForSearchEngines" runat="server" ControlToValidate="txtDescriptionForSearchEngines"
                CssClass="error" Display="Dynamic" ErrorMessage="An entry is required" OnServerValidate="valKeywordsForSearchEngines_ServerValidate"
                ValidateEmptyText="True"></asp:CustomValidator>
            <br />
            <br />
            Users allowed to make changes to this club or event
            <br />
            <asp:ListBox ID="lstAuthorisedUsers" runat="server" Width="20em"></asp:ListBox>
            <br />
            <asp:Button ID="btnRemoveAuthorisedUser" runat="server" Width="20em" Text="Remove selected user" OnClick="btnRemoveAuthorisedUser_Click" />
            <asp:CustomValidator ID="valAuthorisedUsers" runat="server"
                CssClass="error" Display="Dynamic" ErrorMessage="An entry is required" OnServerValidate="valAuthorisedUsers_ServerValidate"
                ValidateEmptyText="True" Enabled="False"></asp:CustomValidator>
            <br />
            <br />
            Add a users to the list above
            <br />
            <asp:TextBox ID="txtAddAuthorisedUser" Width="20em" runat="server"></asp:TextBox><br />
            <asp:Button ID="btnAddAuthorisedUser" runat="server" Width="20em" Text="Add user" OnClick="btnAddAuthorisedUser_Click" /><asp:CustomValidator ID="valAddAuthorisedUser" runat="server" CssClass="error"
                    Display="Dynamic" Enabled="False" ErrorMessage="An entry is required" OnServerValidate="valAddAuthorisedUser_ServerValidate"
                    ValidateEmptyText="True"></asp:CustomValidator>
            <br />
            <a name="menuitems">&nbsp;</a><br />
            Menu items
            <br />
            <asp:ListBox ID="lstMenuItems" runat="server" Width="20em"></asp:ListBox><br />
            <asp:Button ID="btnMoveMenuItemUp" runat="server" OnClick="btnMoveMenuItemUp_Click"
                Text="Move selected menu item up" Width="20em" /><br />
            <asp:Button ID="btnMoveMenuItemDown" runat="server" OnClick="btnMoveMenuItemDown_Click"
                Text="Move selected menu item down" Width="20em" /><br />
            <asp:Button ID="btnRemoveMenuItem" runat="server" Text="Remove selected menu item" Width="20em" OnClick="btnRemoveMenuItem_Click" /><asp:CustomValidator ID="valMenuItems" runat="server"
                    CssClass="error" Display="Dynamic" Enabled="False" ErrorMessage="An entry is required"
                    OnServerValidate="valMenuItems_ServerValidate" ValidateEmptyText="True"></asp:CustomValidator><br />
            <br />
            Add menu item
            <br />
            <asp:TextBox ID="txtAddMenuItem" runat="server" Width="20em"></asp:TextBox><br />
            <asp:Button ID="btnAddMenuItem" runat="server" Text="Add menu item" Width="20em" OnClick="btnAddMenuItem_Click" /><asp:CustomValidator ID="valAddMenuItem" runat="server"
                CssClass="error" Display="Dynamic" ErrorMessage="An entry is required" OnServerValidate="valAddMenuItem_ServerValidate"
                ValidateEmptyText="True" Enabled="False"></asp:CustomValidator>
            <br />
            <br />
            <br />
            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="Save Changes" />
            <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="Cancel Changes" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
